﻿@model HZU.ZP.Domain.Model.Resume.ResumeInfo
@{
    Layout = "_ApplicatLayout";
}
<script src="https://cdn.bootcss.com/jquery.form/4.2.0/jquery.form.min.js"></script>
<script type="text/javascript">
    function masterSkillEdit(id, skill, level) {
        $("#MasterSkillId").val(id);
        $("#Skill").val(skill);
        $("#Level").val(level);
        $("#masterSkillAddButton").click();
    }
    function masterSkillDelete(id) {
        if (confirm("确实要删除吗？")) {
            $.ajax({
                type: "post",
                url: "/Resume/DeleteMasterSkill",
                data: "id="+id,
                success: function (message) {
                    if (message.returnCode == "001") {
                        alert("保存成功");
                        window.location.reload();
                    }
                    else if (message.returnCode == "999") {
                        alert("保存失败");
                    }
                }
            });
        }
        else {
        }
    }
    function awardEdit(id, getTime, awardName, achievement) {
        $("#AwardId").val(id);
        $("#GetTime").val(getTime);
        $("#AwardName").val(awardName);
        $("#Achievement").val(achievement);
        $("#awardAddButton").click();
    }
    function awardDelete(id) {
        if (confirm("确实要删除吗？")) {
            $.ajax({
                type: "post",
                url: "/Resume/DeleteAward",
               data: "id="+id,
                success: function (message) {
                    if (message.returnCode == "001") {
                        alert("保存成功");
                        window.location.reload();
                    }
                    else if (message.returnCode == "999") {
                        alert("保存失败");
                    }
                }
            });
        }
        else {

        }
    }
    function projectExperienceEdit(id, projectName, projectRole, startTime, endTime, proDescription, resDescription) {
        $("#ProjectExperienceId").val(id);
        $("#ProjectName").val(projectName);
        $("#ProjectRole").val(projectRole);
        $("#StartTime").val(startTime);
        $("#EndTime").val(endTime);
        $("#ProDescription").val(proDescription);
        $("#ResDescription").val(resDescription);
        $("#projectExperienceAddButton").click();
    }
    function projectExperienceDelete(id) {
        if (confirm("确实要删除吗？")) {
            $.ajax({
                type: "post",
                url: "/Resume/DeleteProjectExperience",
               data: "id="+id,
                success: function (message) {
                    if (message.returnCode == "001") {
                        alert("保存成功");
                        window.location.reload();
                    }
                    else if (message.returnCode == "999") {
                        alert("保存失败");
                    }
                }
            });
        }
        else {

        }
    }
    function educationExperienceEdit(id, schoolName, majorName, startTime, endTime, academicDegree, majorDescription) {
        $("#EducationExperienceId").val(id);
        $("#SchoolName").val(schoolName);
        $("#MajorName").val(majorName);
        $("#EducationExperienceStartTime").val(startTime);
        $("#EducationExperienceEndTime").val(endTime);
        $("#AcademicDegree").val(academicDegree);
        $("#MajorDescription").val(majorDescription);
        $("#educationExperienceAddButton").click();
    }
    function educationExperienceDelete(id) {
        if (confirm("确实要删除吗？")) {
            $.ajax({
                type: "post",
                url: "/Resume/DeleteEducationExperience",
                data: "id="+id,
                success: function (message) {
                    if (message.returnCode == "001") {
                        alert("保存成功");
                        window.location.reload();
                    }
                    else if (message.returnCode == "999") {
                        alert("保存失败");
                    }
                }
            });
        }
        else {

        }
    }
</script>
<script>
    $(document).ready(function () {
        $("#informationEdit").hide();
        $("#selfEvaluationEdit").hide();
        $("#jobIntentionEdit").hide();
        $("#masterSkillEdit").hide();
        $("#awardEdit").hide();
        $("#projectExperienceEdit").hide();
        $("#educationExperienceEdit").hide();
        $(".projectExperience1").mouseover(function () {
            $(this).css({ "border": "1px solid red", "width": "98%", "margin-bottom": "2px" });
        }).mouseout(function () {
            $(this).css({ "border": "0px" });
        });
        //个人信息操作
        $("#informationEditButton").click(function () {
            $("#information").hide();
            $("#informationEdit").show();
        });
        $("#cancelInformation").click(function () {
            $("#informationEdit").hide();
            $("#information").show();
        });
        $("#informationForm").submit(function () {
            var action;
            $("#saveInformation").button('loading');
            if ($("#infoId").val() != "") {
                action = "/Resume/EditInformation";
            }
            else {
                action = "/Resume/AddInformation";
            }
            $("#informationForm").attr('action', action);
        });
        $("#informationForm").ajaxForm(function (message) {
            if (message.returnCode == "001") {
                $("#saveInformation").button('loading').button('reset');
                alert("保存成功");
                window.location.reload();
            }
            else if (message.returnCode == "999") {
                alert("保存失败");
                $("#saveInformation").button('loading').button('reset');
            }
        });

        //个人优势操作
        $("#selfEvaluationEditButton").click(function () {
            $("#selfEvaluation").hide();
            $("#selfEvaluationEdit").show();
        });
        $("#cancelSelfEvaluation").click(function () {
            $("#selfEvaluationEdit").hide();
            $("#selfEvaluation").show();
        });
        $("#selfEvaluationForm").submit(function () {
            var action;
            $("#saveSelfEvaluation").button('loading');
            if ($("#selfId").val() != "") {
                action = "/Resume/EditSelfEvaluation";
            }
            else {
                action = "/Resume/AddSelfEvaluation";
            }
            $("#selfEvaluationForm").attr('action', action);
        });
        $("#selfEvaluationForm").ajaxForm(function (message) {
            if (message.returnCode == "001") {
                $("#saveSelfEvaluation").button('loading').button('reset');
                alert("保存成功");
                window.location.reload();
            }
            else if (message.returnCode == "999") {
                alert("保存失败");
                $("#saveSelfEvaluation").button('loading').button('reset');
            }
        });
        //求职意向操作
        $("#jobIntentionEditButton").click(function () {
            $("#jobIntention").hide();
            $("#jobIntentionEdit").show();
        });
        $("#cancelJobIntention").click(function () {
            $("#jobIntentionEdit").hide();
            $("#jobIntention").show();
        });
        $("#jobIntentionForm").submit(function () {
            var action;
            $("#saveJobIntention").button('loading');
            if ($("#jobiId").val() != "") {
                action = "/Resume/EditJobIntention";
            }
            else {
                action = "/Resume/AddJobIntention";
            }
            $("#jobIntentionForm").attr('action', action);
        });
        $("#jobIntentionForm").ajaxForm(function (message) {
            if (message.returnCode == "001") {
                $("#saveJobIntention").button('loading').button('reset');
                alert("保存成功");
                window.location.reload();
            }
            else if (message.returnCode == "999") {
                alert("保存失败");
                $("#saveJobIntention").button('loading').button('reset');
            }
        });

        //掌握技能操作
        $("#masterSkillAddButton").click(function () {
            $("#masterSkill").hide();
            $("#masterSkillEdit").show();
        });
        $("#cancelMasterSkill").click(function () {
            $("#masterSkillEdit").hide();
            $("#MasterSkillId").val("");
            $("#Skill").val("");
            $("#Level").val("一般");
            $("#masterSkill").show();
        });
         $("#masterSkillForm").submit(function () {
            var action;
            $("#saveMasterSkill").button('loading');
            if ($("#MasterSkillId").val() != "") {
                action = "/Resume/EditMasterSkill";
            }
            else {
                action = "/Resume/AddMasterSkill";
            }
            $("#masterSkillForm").attr('action', action);
        });
        $("#masterSkillForm").ajaxForm(function (message) {
            if (message.returnCode == "001") {
                $("#saveMasterSkill").button('loading').button('reset');
                alert("保存成功");
                window.location.reload();
            }
            else if (message.returnCode == "999") {
                alert("保存失败");
                $("#saveMasterSkill").button('loading').button('reset');
            }
        });
        //获得奖项操作
        $("#awardAddButton").click(function () {
            $("#award").hide();
            $("#awardEdit").show();
        });
        $("#cancelAward").click(function () {
            $("#awardEdit").hide();
            $("#AwardId").val("");
            $("#GetTime").val("2020-01-01");
            $("#AwardName").val("");
            $("#Achievement").val("");
            $("#award").show();
        });
        $("#awardForm").submit(function () {
            var action;
            $("#saveAward").button('loading');
            if ($("#AwardId").val() != "") {
                action = "/Resume/EditAward";
            }
            else {
                action = "/Resume/AddAward";
            }
            $("#awardForm").attr('action', action);
        });
        $("#awardForm").ajaxForm(function (message) {
            if (message.returnCode == "001") {
                $("#saveAward").button('loading').button('reset');
                alert("保存成功");
                window.location.reload();
            }
            else if (message.returnCode == "999") {
                alert("保存失败");
                $("#saveAward").button('loading').button('reset');
            }
        });
        //项目经验操作
        $("#projectExperienceAddButton").click(function () {
            $("#projectExperience").hide();
            $("#projectExperienceEdit").show();
        });
        $("#cancelProjectExperience").click(function () {
            $("#projectExperienceEdit").hide();
            $("#ProjectExperienceId").val("");
            $("#ProjectName").val("");
            $("#ProjectRole").val("");
            $("#StartTime").val("2020-01-01");
            $("#EndTime").val("2020-01-01");
            $("#ProDescription").val("");
            $("#ResDescription").val("");
            $("#projectExperience").show();
        });
        $("#projectExperienceForm").submit(function () {
            var action;
            $("#saveProjectExperience").button('loading');
            if ($("#ProjectExperienceId").val() != "") {
                action = "/Resume/EditProjectExperience";
            }
            else {
                action = "/Resume/AddProjectExperience";
            }
            $("#projectExperienceForm").attr('action', action);
        });
        $("#projectExperienceForm").ajaxForm(function (message) {
            if (message.returnCode == "001") {
                $("#saveProjectExperience").button('loading').button('reset');
                alert("保存成功");
                window.location.reload();
            }
            else if (message.returnCode == "999") {
                alert("保存失败");
                $("#saveProjectExperience").button('loading').button('reset');
            }
        });
        //教育经历操作
        $("#educationExperienceAddButton").click(function () {
            $("#educationExperience").hide();
            $("#educationExperienceEdit").show();
        });
        $("#cancelEducationExperience").click(function () {
            $("#educationExperienceEdit").hide();
            $("#EducationExperienceId").val("");
            $("#SchoolName").val("");
            $("#AcademicDegree").val("");
            $("#EducationExperienceStartTime").val("2020-01-01");
            $("#EducationExperienceEndTime").val("2020-01-01");
            $("#AcademicDegree").val("");
            $("#MajorDescription").val("");
            $("#educationExperience").show();
        });
        $("#educationExperienceForm").submit(function () {
            var action;
            $("#saveEducationExperience").button('loading');
            if ($("#ProjectExperienceId").val() != "") {
                action = "/Resume/EditEducationExperience";
            }
            else {
                action = "/Resume/AddEducationExperience";
            }
            $("#educationExperienceForm").attr('action', action);
        });
        $("#educationExperienceForm").ajaxForm(function (message) {
            if (message.returnCode == "001") {
                $("#saveEducationExperience").button('loading').button('reset');
                alert("保存成功");
                window.location.reload();
            }
            else if (message.returnCode == "999") {
                alert("保存失败");
                $("#saveEducationExperience").button('loading').button('reset');
            }
        });
    });
</script>
<style>
    .selectName {
        text-align: center;
        border: 1px solid #ccc;
        padding: 6px 4px;
        width: 49%;
        border-radius: 4px;
    }

    table.gridtable {
        font-family: verdana,arial,sans-serif;
        font-size: 15px;
        color: #333333;
    }

        table.gridtable th {
            padding: 8px;
            background-color: #ffffff;
        }

        table.gridtable td {
            padding: 8px;
            background-color: #ffffff;
        }

    .spanName {
        display: block;
        float: left;
        width: 28.5%;
    }

    .spanNameEdu {
        display: block;
        float: left;
        width: 21.5%;
    }
</style>
<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">基本信息</a>
        </div>
        <ul class="nav navbar-nav navbar-right">
            <li><a id="informationEditButton" href="javascript:;">编辑</a></li>
        </ul>
    </div>
</nav>

<div class="container" id="information">
    @*<p style="display:none" id="informationId">@Model.Information.Id</p>*@
    @*<span style="display:none" >@Model.Information.ApplicantId</span>*@
    @if (Model.Information != null)
    {
        <h3>@Model.Information.Name</h3>
        <p>
            现居地:<span>@Model.Information.Provincial-@Model.Information.Municipal</span>
            &thinsp; |&thinsp;<span>@Model.Information.Sex</span>
            &thinsp; |&thinsp;<span>@Model.Information.Birthday.ToString("d")</span>
            &thinsp; |&thinsp;<span>@Model.Information.JobStatus</span>
            &thinsp; |&thinsp;联系方式：<span>@Model.Information.PhoneNumber</span>
            &thinsp; |&thinsp;邮箱：<span>@Model.Information.Email</span>
        </p>
    }
    else
    {
        <h4>没有数据记录...请编辑</h4>
    }
</div>

<div class="container" id="informationEdit">
    <div class="row clearfix">
        <form method="post" id="informationForm">
            <div class="col-md-6 column">
                <input id="infoId" type="hidden" class="form-control" name="id" value="@(Model.Information != null?Model.Information.Id:null)" />
                <input type="hidden" class="form-control" name="applicantId" value="@ViewData["applicantId"]" />
                <div class="form-group">
                    <label style="color:red">姓名</label>
                    <input type="text" class="form-control" name="name" value="@(Model.Information == null ? "" : Model.Information.Name)" required />
                </div>
                <div class="form-group">
                    <label style="color:red">性别</label>
                    <select name="sex" class="form-control" required>
                        <option value="@(Model.Information==null?"男":Model.Information.Sex)" style="display:none">@(Model.Information == null ? "男" : Model.Information.Sex)</option>
                        <option>男</option>
                        <option>女</option>
                    </select>
                </div>
                <div class="form-group">
                    <label style="color:red">生日</label>
                    <input name="birthday" type="date" class="form-control" value="@( Model.Information == null ? "2020-01-01" : Model.Information.Birthday.ToString("yyyy-MM-dd"))" required />
                </div>
                <div class="form-group">
                    <label style="color:red">联系电话</label>
                    <input type="tel" class="form-control" name="phoneNumber" value="@(Model.Information == null ? "" : Model.Information.PhoneNumber)" required autofocus />
                </div>
            </div>
            <div class="col-md-6 column">
                <div class="form-group">
                    <label style="color:red">邮箱</label>
                    <input type="email" class="form-control" name="email" readonly unselectable="on" value="@(Model.Information == null ? User.Identity.Name : Model.Information.Email)" required />
                </div>
                <div class="form-group">
                    <label style="color:red">求职状态</label>
                    <select name="jobStatus" class="form-control" required>
                        <option value="@(Model.Information==null?"暂不考虑":Model.Information.JobStatus)" style="display:none">@(Model.Information == null ? "暂不考虑" : Model.Information.JobStatus)</option>
                        <option>暂不考虑</option>
                        <option>随时到岗</option>
                        <option>考虑机会</option>
                        <option>月内到岗</option>
                    </select>
                </div>
                <div class="form-group">
                    <label style="color:red">政治面貌</label>
                    <select name="politicalIdentity" class="form-control">
                        <option value="@(Model.Information==null?"群众":Model.Information.PoliticalIdentity)" style="display:none">@(Model.Information == null ? "群众" : Model.Information.PoliticalIdentity)</option>
                        <option>群众</option>
                        <option>共青团员</option>
                        <option>预备党员</option>
                        <option>党员</option>
                    </select>
                </div>
                <div class="form-group">
                    <label style="color:red">户籍地址</label>
                    <div>
                        <select id="Provincial" name="provincial" class="selectName">
                            <option value="@(Model.Information==null?"广东":Model.Information.Provincial)" style="display:none">@(Model.Information == null ? "广东" : Model.Information.Provincial)</option>
                        </select>
                        <select id="Municipal" name="municipal" class="selectName">
                            <option value="@(Model.Information==null?"惠州市":Model.Information.Municipal)" style="display:none">@(Model.Information == null ? "惠州市" : Model.Information.Municipal)</option>
                        </select>
                    </div>
                </div>

                <div class="row clearfix">
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                            </div>
                            <div class="col-md-6 column">
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                                <div class="form-group">
                                    <button type="button" class="form-control" id="cancelInformation">取消</button>
                                </div>
                            </div>
                            <div class="col-md-6 column">
                                <div class="form-group">
                                    <button type="submit" id="saveInformation" class="form-control" style="background-color: #79CDCD" data-loading-text="保存中...">保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">个人优势</a>
        </div>
        <ul class="nav navbar-nav navbar-right">
            <li><a id="selfEvaluationEditButton" href="javascript:;">编辑</a></li>
        </ul>
    </div>
</nav>

<div class="container" id="selfEvaluation">

    @if (Model.SelfEvaluation != null)
    {
        @*<p> @Html.Raw(Model.SelfEvaluation.Advantage);</p>*@
        <textarea style="border:none; height:128px;width:98%" readonly>@Model.SelfEvaluation.Advantage</textarea>
    }
    else
    {
        <textarea style="border:none; height:128px;width:98%" readonly>没有数据记录...请编辑</textarea>
    }

</div>

<div class="container" id="selfEvaluationEdit">
    <div class="row clearfix">
        <form method="post" id="selfEvaluationForm">
            <div class="col-md-12 column">
                <div class="form-group">
                    <input id="selfId" type="hidden" class="form-control" name="id" value="@(Model.SelfEvaluation != null?Model.SelfEvaluation.Id:null)" />
                    <input type="hidden" class="form-control" name="applicantId" value="@ViewData["applicantId"]" />
                    <label style="color:red">编辑个人优势</label>
                    <textarea name="advantage" class="form-control" style="height:128px" placeholder="写下您的评论..." maxlength="500" required>@(Model.SelfEvaluation!=null?Model.SelfEvaluation.Advantage:"")</textarea>
                </div>
                <div class="row clearfix">
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                            </div>
                            <div class="col-md-6 column">
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                                <div class="row clearfix">
                                    <div class="col-md-6 column">
                                    </div>
                                    <div class="col-md-6 column">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6 column">
                                <div class="row clearfix">
                                    <div class="col-md-6 column">
                                        <div class="form-group">
                                            <button type="button" id="cancelSelfEvaluation" class="form-control">取消</button>
                                        </div>
                                    </div>
                                    <div class="col-md-6 column">
                                        <div class="form-group">
                                            <button type="submit" id="saveSelfEvaluation" class="form-control" style="background-color: #79CDCD" data-loading-text="保存中...">保存</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">求职意向</a>
        </div>
        <ul class="nav navbar-nav navbar-right">
            <li><a id="jobIntentionEditButton" href="javascript:;">编辑</a></li>
        </ul>
    </div>
</nav>

<div class="container" id="jobIntention">
    @if (Model.JobIntention != null)
    {
        <h4>
            地点：<span>@Model.JobIntention.Provincial-@Model.JobIntention.Municipal</span>
            &thinsp; |&thinsp;薪资：<span>@Model.JobIntention.SalaryExpectation</span>
            &thinsp; |&thinsp;行业：<span>@Model.JobIntention.SmallIndustry</span>
            &thinsp; |&thinsp;职位：<span>@Model.JobIntention.SmallPosition</span>
        </h4>
    }
    else
    {
        <h4>没有数据记录...请编辑</h4>
    }
</div>

<div class="container" id="jobIntentionEdit">
    <div class="row clearfix">
        <form method="post" id="jobIntentionForm">
            <div class="col-md-6 column">
                <div class="form-group">
                    <input id="jobiId" type="hidden" class="form-control" name="id" value="@(Model.JobIntention != null?Model.JobIntention.Id:null)" />
                    <input type="hidden" class="form-control" name="applicantId" value="@ViewData["applicantId"]" />
                    <label style="color:red">期望资薪</label>
                    <select name="salaryExpectation" class="form-control" required>
                        <option value="@(Model.JobIntention==null?"面议":Model.JobIntention.SalaryExpectation )" style="display:none">@(Model.JobIntention == null ? "面议" : Model.JobIntention.SalaryExpectation)</option>
                        <option>面议</option>
                        <option>0-2K</option>
                        <option>2-4K</option>
                        <option>4-6K</option>
                        <option>6-8K</option>
                        <option>8-10K</option>
                    </select>
                </div>
                <div class="form-group">
                    <label style="color:red">职位</label>
                    <div>
                        <select name="bigPosition" id="BigPosition" class="selectName" required>
                            <option value="@(Model.JobIntention==null?"互联网技术":Model.JobIntention.BigPosition )" style="display:none">@(Model.JobIntention == null ? "互联网技术" : Model.JobIntention.BigPosition)</option>
                        </select>
                        <select name="smallPosition" id="SmallPosition" class="selectName" required>
                            <option value="@(Model.JobIntention==null?"Android":Model.JobIntention.SmallPosition )" style="display:none">@(Model.JobIntention == null ? "Android" : Model.JobIntention.SmallPosition)</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-md-6 column">
                <div class="form-group">
                    <label style="color:red">地点</label>
                    <div>
                        <select name="provincial" id="JobProvincial" class="selectName" required>
                            <option value="@(Model.JobIntention==null?"广东":Model.JobIntention.Provincial )" style="display:none">@(Model.JobIntention == null ? "广东" : Model.JobIntention.Provincial)</option>
                        </select>
                        <select name="municipal" id="JobMunicipal" class="selectName" required>
                            <option value="@(Model.JobIntention==null?"惠州市":Model.JobIntention.Municipal )" style="display:none">@(Model.JobIntention == null ? "惠州市" : Model.JobIntention.Municipal)</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label style="color:red">行业</label>
                    <div>
                        <select name="bigIndustry" id="BigIndustry" class="selectName" required>
                            <option value="@(Model.JobIntention==null?"互联网/IT/电子/通信":Model.JobIntention.BigIndustry )" style="display:none">@(Model.JobIntention == null ? "互联网/IT/电子/通信" : Model.JobIntention.BigIndustry)</option>
                        </select>
                        <select name="smallIndustry" id="SmallIndustry" class="selectName" required>
                            <option value="@(Model.JobIntention==null?"电子商务":Model.JobIntention.SmallIndustry )" style="display:none">@(Model.JobIntention == null ? "电子商务" : Model.JobIntention.SmallIndustry)</option>
                        </select>
                    </div>
                </div>

                <div class="row clearfix">
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                            </div>
                            <div class="col-md-6 column">
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                                <div class="form-group">
                                    <button type="button" class="form-control" id="cancelJobIntention">取消</button>
                                </div>
                            </div>
                            <div class="col-md-6 column">
                                <div class="form-group">
                                    <button type="submit" class="form-control" style="background-color: #79CDCD" id="saveJobIntention" data-loading-text="保存中...">保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </form>
    </div>
</div>

<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">掌握技能</a>
        </div>
        <ul class="nav navbar-nav navbar-right">
            <li><a id="masterSkillAddButton" href="javascript:;">添加</a></li>
        </ul>
    </div>
</nav>

<div class="container" id="masterSkill">
    @if (Model.MasterSkills.Count() >= 1)
    {
        <table class="gridtable">
            <thead>
                <tr>
                    <th class="container">技能名称</th>
                    <th style="text-align:center" class="container">熟练程度</th>
                    <th style="text-align:center" class="container">操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var masterSkill in Model.MasterSkills)
                {
                    <tr>
                        <td>@masterSkill.Skill</td>
                        <td style="text-align:center">@masterSkill.Level</td>
                        <td style="text-align:center">
                            <a href="javascript:masterSkillEdit('@masterSkill.Id', '@masterSkill.Skill', '@masterSkill.Level');">编辑</a>
                            &thinsp;
                            <a href="javascript:masterSkillDelete('@masterSkill.Id');">删除</a>
                        </td>
                    </tr>

                }
            </tbody>
        </table>
    }
    else
    {
        <h4>没有数据记录...请添加</h4>
    }

</div>

<div class="container" id="masterSkillEdit">
    <div class="row clearfix">
        <form method="post" id="masterSkillForm">
            <div class="col-md-6 column">
                <div class="form-group">
                    <input id="MasterSkillId" type="hidden" class="form-control" name="id" value="" />
                    <input type="hidden" class="form-control" name="applicantId" value="@ViewData["applicantId"]" />
                    <label style="color:red">技能</label>
                    <input type="text" class="form-control" name="skill" id="Skill" required />
                </div>
            </div>
            <div class="col-md-6 column">
                <div class="form-group">
                    <label style="color:red">掌握程度</label>
                    <div>
                        <select name="level" id="Level" class="form-control" required>
                            <option>一般</option>
                            <option>良好</option>
                            <option>熟练</option>
                            <option>精通</option>
                        </select>
                    </div>
                </div>

                <div class="row clearfix">
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                            </div>
                            <div class="col-md-6 column">
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                                <div class="form-group">
                                    <button type="button" class="form-control" id="cancelMasterSkill">取消</button>
                                </div>
                            </div>
                            <div class="col-md-6 column">
                                <div class="form-group">
                                    <button type="submit" class="form-control" style="background-color: #79CDCD" id="saveMasterSkill" data-loading-text="保存中...">保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </form>
    </div>
</div>

<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">获得奖项</a>
        </div>
        <ul class="nav navbar-nav navbar-right">
            <li><a id="awardAddButton" href="javascript:;">添加</a></li>
        </ul>
    </div>
</nav>

<div class="container" id="award">
    @if (Model.Awards.Count() >= 1)
    {
        <table class="gridtable">
            <thead>
                <tr>
                    <th class="container">获得时间</th>
                    <th style="text-align:center" class="container">奖项名称</th>
                    <th style="text-align:center" class="container">等级</th>
                    <th style="text-align:center" class="container">操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var award in Model.Awards)
                {
                    <tr>
                        <td>@award.GetTime.ToString("d")</td>
                        <td style="text-align:center">@award.AwardName</td>
                        <td style="text-align:center">@award.Achievement</td>
                        <td style="text-align:center">
                            <a href="javascript:awardEdit('@award.Id', '@award.GetTime.ToString("yyyy-MM-dd")', '@award.AwardName', '@award.Achievement');">编辑</a>
                            &thinsp;
                            <a href="javascript:awardDelete('@award.Id');">删除</a>
                        </td>
                    </tr>

                }
            </tbody>
        </table>
    }
    else
    {
        <h4>没有数据记录...请添加</h4>
    }
</div>

<div class="container" id="awardEdit">
    <form method="post" id="awardForm">
        <div class="row clearfix">
            <div class="col-md-6 column">
                <div class="form-group">
                    <input id="AwardId" type="hidden" class="form-control" name="id" value="" />
                    <input type="hidden" class="form-control" name="applicantId" value="@ViewData["applicantId"]" />
                    <label style="color:red">获得时间</label>
                    <input type="date" class="form-control" name="getTime" id="GetTime" value="2020-01-01" required />
                </div>
            </div>
            <div class="col-md-6 column">
                <div class="form-group">
                </div>
            </div>
        </div>

        <div class="row clearfix">
            <div class="col-md-6 column">
                <div class="form-group">
                    <label style="color:red">奖项名称</label>
                    <input type="text" class="form-control" name="awardName" id="AwardName" value="" required />
                </div>
            </div>
            <div class="col-md-6 column">
                <div class="form-group">
                    <label style="color:red">级别</label>
                    <input type="text" class="form-control" name="achievement" id="Achievement" value="" required />
                </div>
                <div class="row clearfix">
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                            </div>
                            <div class="col-md-6 column">
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                                <div class="form-group">
                                    <button type="button" class="form-control" id="cancelAward">取消</button>
                                </div>
                            </div>
                            <div class="col-md-6 column">
                                <div class="form-group">
                                    <button type="submit" class="form-control" style="background-color: #79CDCD" id="saveAward" data-loading-text="保存中...">保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">项目经验</a>
        </div>
        <ul class="nav navbar-nav navbar-right">
            <li><a id="projectExperienceAddButton" href="javascript:;">添加</a></li>
        </ul>
    </div>
</nav>

<div class="container" id="projectExperience">
    @if (Model.ProjectExperiences.Count() >= 1)
    {
        foreach (var projectExperience in Model.ProjectExperiences)
        {
            <div class="projectExperience1">
                <p>
                    <span class="spanName">@projectExperience.StartTime.ToString("yyyy/MM")-@projectExperience.EndTime.ToString("yyyy/MM")</span>
                    <span class="spanName">@projectExperience.ProjectName</span>
                    <span class="spanName">@projectExperience.ProjectRole</span>
                    <a href="javascript:projectExperienceEdit('@projectExperience.Id', '@projectExperience.ProjectName', '@projectExperience.ProjectRole', '@projectExperience.StartTime.ToString("yyyy-MM-dd")', '@projectExperience.EndTime.ToString("yyyy-MM-dd")',
                   '@projectExperience.ProDescription', '@projectExperience.ResDescription');">编辑</a>
                    &thinsp;
                    <a href="javascript:projectExperienceDelete('@projectExperience.Id');">删除</a>
                </p>
                <div>项目经验： <textarea style="border:none; height:128px;width:98%" readonly>@projectExperience.ProDescription</textarea></div>
                <div>项目责任： <textarea style="border:none; height:128px;width:98%" readonly>@projectExperience.ResDescription</textarea></div>
            </div>
        }
    }
    else
    {
        <h4>没有数据记录...请添加</h4>
    }
</div>

<div class="container" id="projectExperienceEdit">
    <form method="post" id="projectExperienceForm">
        <div class="row clearfix">
            <div class="col-md-6 column">
                <div class="form-group">
                    <input id="ProjectExperienceId" type="hidden" class="form-control" name="id" value="" />
                    <input type="hidden" class="form-control" name="applicantId" value="@ViewData["applicantId"]" />
                    <label style="color:red">项目名称</label>
                    <input type="text" class="form-control" id="ProjectName" name="projectName" required />
                </div>
                <div class="form-group">
                    <label style="color:red">开始时间</label>
                    <input name="startTime" id="StartTime" type="date" class="form-control" value="2020-01-01" required />
                </div>
            </div>
            <div class="col-md-6 column">
                <div class="form-group">
                    <label style="color:red">项目角色</label>
                    <input type="text" class="form-control" id="ProjectRole" name="projectRole" required />
                </div>
                <div class="form-group">
                    <label style="color:red">结束时间</label>
                    <input name="endTime" id="EndTime" type="date" class="form-control" value="2020-01-01" required />
                </div>
            </div>
            <div class="col-md-12 column">
                <div class="form-group">
                    <label style="color:red">项目描述</label>
                    <textarea name="proDescription" id="ProDescription" class="form-control" style="height:128px" placeholder="请输入项目描述" maxlength="1000" required></textarea>
                </div>
            </div>
            <div class="col-md-12 column">
                <div class="form-group">
                    <label style="color:red">责任描述</label>
                    <textarea name="resDescription" id="ResDescription" class="form-control" style="height:128px" placeholder="请输入责任描述" maxlength="1000" required></textarea>
                </div>
                <div class="row clearfix">
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                            </div>
                            <div class="col-md-6 column">
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                                <div class="row clearfix">
                                    <div class="col-md-6 column">
                                    </div>
                                    <div class="col-md-6 column">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6 column">
                                <div class="row clearfix">
                                    <div class="col-md-6 column">
                                        <div class="form-group">
                                            <button type="button" class="form-control" id="cancelProjectExperience">取消</button>
                                        </div>
                                    </div>
                                    <div class="col-md-6 column">
                                        <div class="form-group">
                                            <button type="submit" class="form-control" style="background-color: #79CDCD" id="saveProjectExperience" data-loading-text="保存中...">保存</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">教育经历</a>
        </div>
        <ul class="nav navbar-nav navbar-right">
            <li><a id="educationExperienceAddButton" href="javascript:;">添加</a></li>
        </ul>
    </div>
</nav>

<div class="container" id="educationExperience">
    @if (Model.EducationExperiences.Count() >= 1)
    {
        foreach (var educationExperience in Model.EducationExperiences)
        {
            <div class="projectExperience1">
                <p>
                    <span class="spanNameEdu">@educationExperience.StartTime.ToString("yyyy/MM")-@educationExperience.EndTime.ToString("yyyy/MM")</span>
                    <span class="spanNameEdu">@educationExperience.SchoolName</span>
                    <span class="spanNameEdu">@educationExperience.MajorName</span>
                    <span class="spanNameEdu">@educationExperience.AcademicDegree</span>
                    <a href="javascript:educationExperienceEdit('@educationExperience.Id', '@educationExperience.SchoolName', '@educationExperience.MajorName', '@educationExperience.StartTime.ToString("yyyy-MM-dd")', '@educationExperience.EndTime.ToString("yyyy-MM-dd")',
                   '@educationExperience.AcademicDegree', '@educationExperience.MajorDescription');">编辑</a>
                    &thinsp;
                    <a href="javascript:educationExperienceDelete('@educationExperience.Id');">删除</a>
                </p>
                <div>在校经历： <textarea style="border:none; height:128px;width:98%" readonly>@educationExperience.MajorDescription</textarea></div>
            </div>
        }
    }
    else
    {
        <h4>没有数据记录...请添加</h4>
    }
</div>

<div class="container" id="educationExperienceEdit">
    <form method="post" id="educationExperienceForm">
        <div class="row clearfix">
            <div class="col-md-6 column">
                <div class="form-group">
                    <input id="EducationExperienceId" type="hidden" class="form-control" name="id" value="" />
                    <input type="hidden" class="form-control" name="applicantId" value="@ViewData["applicantId"]" />
                    <label style="color:red">学校名称</label>
                    <input type="text" class="form-control" id="SchoolName" name="schoolName" required />
                </div>
            </div>
        </div>
        <div class="row clearfix">
            <div class="col-md-6 column">
                <label style="color:red">学历</label>
                <select name="academicDegree" id="AcademicDegree" class="form-control" required>
                    <option>初中及以下</option>
                    <option>中专/中技</option>
                    <option>高中</option>
                    <option>大专</option>
                    <option>本科</option>
                    <option>硕士</option>
                    <option>博士</option>
                </select>
            </div>
            <div class="col-md-6 column">
                <label style="color:red">专业</label>
                <input type="text" class="form-control" id="MajorName" name="majorName" required />
            </div>
        </div>
        <div class="row clearfix">
            <div class="col-md-6 column">
                <div class="form-group">
                    <label style="color:red">开始时间</label>
                    <input name="startTime" id="EducationExperienceStartTime" type="date" class="form-control" value="2020-01-01" required />
                </div>
            </div>
            <div class="col-md-6 column">
                <div class="form-group">
                    <label style="color:red">结束时间</label>
                    <input name="endTime" id="EducationExperienceEndTime" type="date" class="form-control" value="2020-01-01" required />
                </div>
            </div>
        </div>
        <div class="row clearfix">
            <div class="col-md-12 column">
                <div class="form-group">
                    <label style="color:red">在校经历</label>
                    <textarea name="majorDescription" id="MajorDescription" class="form-control" style="height:128px" placeholder="请输入在校经历" maxlength="1000" required></textarea>
                </div>
                <div class="row clearfix">
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                            </div>
                            <div class="col-md-6 column">
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 column">
                        <div class="row clearfix">
                            <div class="col-md-6 column">
                                <div class="row clearfix">
                                    <div class="col-md-6 column">
                                    </div>
                                    <div class="col-md-6 column">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6 column">
                                <div class="row clearfix">
                                    <div class="col-md-6 column">
                                        <div class="form-group">
                                            <button type="button" class="form-control" id="cancelEducationExperience">取消</button>
                                        </div>
                                    </div>
                                    <div class="col-md-6 column">
                                        <div class="form-group">
                                            <button type="submit" class="form-control" style="background-color: #79CDCD" id="saveEducationExperience" data-loading-text="保存中...">保存</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="~/js/area.js"></script>
<script type="text/javascript" src="~/js/position.js"></script>
<script type="text/javascript" src="~/js/industry.js"></script>
<script type="text/javascript" src="~/js/select.js"></script>

